Method and apparatus for processing data, device, and storage medium

ABSTRACT

The present disclosure provides a method and apparatus for processing data, a device and a storage medium. The method includes receiving and processing data; obtaining a transmission path of the data; transmitting the data to a destination output port of the data according to the transmission path; and processing the data at the destination output port.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application claims priority to Chinese patent applicationNo. 201911242582.3, filed Dec. 6, 2019, which is incorporated byreference herein in its entirety.

TECHNICAL FIELD

The various embodiments of the present disclosure relate in general tocommunication technology, and more specifically to a method andapparatus for processing data, a device, and a storage medium.

BACKGROUND

There are a lot of unicast data switching inside communication productsin the communication field such as software defined network (SDN). Insome cases, the unicast data switching network is implemented in acrossbar matrix structure. In the Crossbar matrix structure, every inputport of source data needs to be in one-to-one direct connection withevery output port of the source data, and a destination address of thesource data from each input port is compared with a physical address ofeach corresponding output port by a comparator to determine whether theyare the same, so as to ensure that the output port receives thecorresponding data from the corresponding input port, thereby completingthe data transmission.

SUMMARY

Some embodiments of the present disclosure provide a method forprocessing data including: receiving and processing data; obtaining atransmission path of the data; transmitting the data to a destinationoutput port of the data according to the transmission path; andprocessing the data at the destination output port.

Some embodiments of the present disclosure further provide an apparatusfor processing data including: a processing module, configured toreceive and process data; an obtaining module, configured to obtain atransmission path of the data; and a transmitting module, configured totransmit the data to a destination output port of the data according tothe transmission path; wherein the processing module is furtherconfigured to process the data at the destination output port.

Some embodiments of the present disclosure further provide a deviceincluding a memory, at least one processor, and a computer programstored on the memory and executable on the at least one processor,wherein the at least one processor executes the computer program toperform the method for processing data according to the embodiments ofthe present disclosure.

Some embodiments of the present disclosure further provide a computerreadable storage medium storing a computer program that, when executedby at least one processor, causes the at least one processor to performthe method for processing data according to the embodiments of thepresent disclosure.

With respect to the above embodiments and other aspects of the presentdisclosure and implementations thereof, more description is provided inthe accompanying drawings, specific embodiments, and appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of a method for processing data according to anembodiment.

FIG. 2 is a schematic diagram of a network structure of a datatransmission path.

FIG. 3 is a schematic diagram showing a working state of a switchingnetwork node.

FIG. 4 is a schematic structural diagram of an apparatus for processingdata according to an embodiment.

FIG. 5 is a schematic structural diagram of a device according to anembodiment.

DETAILED DESCRIPTION OF THE EMBODIMENTS

In order to make the purposes, technical solutions and advantages of thepresent disclosure clearer, the following describes the embodiments ofthe present disclosure in detail with reference to the accompanyingdrawings. It should be noted that the embodiments of the presentdisclosure and the features in the embodiments may be arbitrarilycombined with each other without conflict.

In addition, in embodiments of the present disclosure, the words “insome cases” or “for example” are used to mean to illustrate, exemplify,or illustrate. Any embodiment or design described as “in some cases” or“for example” in the embodiments of the present disclosure shall not beconstrued to be preferred or superior to other embodiments or designs.Specifically, the use of words such as “in some cases” or “for example”is intended to present relevant concepts in a specific manner.

For a crossbar matrix structure having N input ports and M output ports,a total number of traces inside the crossbar matrix structure is N×M,and the number of comparators is N×XM. The inventor found that due tothe crossbar matrix structure itself, both the total number of tracesinside the crossbar matrix structure and the number of comparators aretoo large when the number of input ports and output ports is large,which results in occupying excessive resources and reducing the useefficiency of resources, thereby causing waste of resources andincreasing the cost of equipment.

Based on this, some embodiments of the present disclosure provide amethod and apparatus for scheduling downlink control information, and astorage medium, which implement downlink control information schedulingwith a simple circular buffer scheduler, thereby efficiently andflexibly implementing scheduling processing of a mobile terminal on aphysical layer and a downlink traffic channel.

FIG. 1 is a flowchart of a method for processing data according to anembodiment. As shown in FIG. 1, the method includes the followingoperations.

In S101, data is received and processed.

In this embodiment, the received data may be any service data, such asdata obtained by interaction between devices, data downloaded by thedevices from the network, and the like.

In some cases, the received data may include at least a destinationoutput port of the data and a validity indication signal of the data.

Furthermore, the data may be pre-processed after the data is acquired.

For example, a processing method provided in this embodiment of thepresent disclosure is to obtain the destination output port of the dataafter receiving the data, and sort the received data according to thedestination output port. For example, the data may be sorted accordingto a size of an address of the destination output port of the data.

In some cases, the received data may be sorted by means of a softwaresorting algorithm or hardware circuit processing.

In S102, a transmission path of the data is obtained.

After the operation S101 of processing the data, the transmission pathof the processed data is determined.

For example, a switching network node on and a configuration parameterof the switching network node are determined according to a source inputport and a destination output port of the received data.

It should be noted that the transmission path of the data consists of atleast one switching network node, and a network structure diagram of thetransmission path of the data is shown in FIG. 2. A comparator is usedto implement corresponding functions of each switching network node. Inthe data transmission network, any two levels of switching network nodesare connected in a uniform shuffling manner.

Then, the at least one switching network node is configured according tothe configuration parameter of each switching network node to generatethe transmission path of the data.

The configuration parameter may be a working state of the switchingnetwork node.

In some cases, as shown in FIG. 3, the working state may be a throughtransmission state or a cross transmission state.

Similarly, the transmission path of the data may be obtained by means ofsoftware operation or hardware circuit processing.

Both a specific software operation mode and a specific hardware circuitmay adopt existing implementations, which are not limited in thisembodiment of the present disclosure.

In S103, the data is transmitted to the destination output port of thedata according to the transmission path.

After obtaining the transmission path of the data, the data istransmitted to the destination output port of the data through thetransmission path determined in the data transmission network shown inFIG. 2.

For example, the data is transmitted to the destination output port ofthe data according to the working state of each switching network nodeon the transmission path.

For example, when a switching network node is in the throughtransmission state, the switching network node completes data switchingfrom an input port 0 to an output port 0 and from an input port 1 to aninput port 1. When the switching network node is in the crosstransmission state, the switching network node completes data switchingfrom the input port 0 to the output port 1 and from the input port 1 tothe output port 0, so as to select a corresponding data transmissionpath according to the working state of the switching network node, andcomplete data transmission to the destination output port.

In S104, the data is processed at the destination output port.

Based on the processing procedure of operations S101 to S103 describedabove, the data is processed after receiving the transmitted data at thedestination output port.

In some cases, in the embodiments of the present disclosure, thereceived data includes a validity indication signal of the data, andtherefore, the data is processed at the destination output portaccording to the validity indication signal of the data.

In one example, in response to determining that the data is validaccording to the validity indication signal of the data, the data isnormally received at the destination output port.

Alternatively, in response to determining that the data is invalidaccording to the validity indication signal of the data, the data is notprocessed and is discarded directly at the destination output port.

As shown in FIG. 2, the data transmission network consists of two parts,i.e., switching network nodes and traces between the switching networknodes. For a switching network having N input ports, the number oflevels is log₂(N). Each level includes N/2 switching network nodes. Fora switching network having N input ports and M output ports, if N>M, thetotal number of traces inside the network is N×log₂(N), and the numberof switching network nodes is N/2×log₂(N). If N<M, the total number oftraces inside the network is M×log₂(M), and the number of switchingnetwork nodes is M/2×log₂(M).

Through the above implementation process, when the number of input portsand output ports in the data transmission network is large, the numberof traces and the number of switching network nodes in the datatransmission network are able to be effectively reduced while realizingthe same function of the crossbar matrix structure, thereby improvingthe use efficiency of resources and reducing the cost.

FIG. 4 is an apparatus for processing data according to an embodiment.As shown in FIG. 4, the apparatus includes a processing module 401, anobtaining module 402, and a transmitting module 403.

The processing module is configured to receive and process data.

The obtaining module is configured to obtain a transmission path of thedata.

The transmission module is configured to transmit the data to adestination output port of the data according to the transmission path.

Furthermore, the processing module is further configured to process thedata at the destination output port.

In one example, the processing module is configured to acquire thedestination output port of the data and sort the data according to thedestination output port.

In one example, the obtaining module includes a determining unit and aconfiguring unit.

The determining unit is configured to determine at least one switchingnetwork node on the transmission path of the data and a configurationparameter of each of the at least one switching network node accordingto a source input port and the destination output port of the data.

The configuring unit is configured to configure each of the at least oneswitching network node according to the configuration parameter togenerate the transmission path of the data.

The configuration parameter is a working state of each of the at leastone switching network node, and the working state includes a throughtransmission state and a cross transmission state.

In one example, the transmitting module is configured to transmit thedata to the destination output port of the data according to the workingstate of each of the at least one switching network node on thetransmission path.

In one example, the processing module is configured to process the dataat the destination output port according to a validity indication signalof the data.

For example, a processing mode of the processing module may be toreceive the data at the destination output port in response todetermining that the data is valid according to the validity indicationsignal of the data, alternatively, may be to discard the data at thedestination output port in response to determining that the data isinvalid according to the validity indication signal of the data.

FIG. 5 is a schematic structural diagram of a device. As shown in FIG.5, the device includes a processor 501 and a memory 502. The number ofprocessors 501 in the device may be one or more. FIG. 5 shows an exampleof one processor 501. The processor 501 and the memory 502 in the devicemay be connected by a bus or other means.

As a computer readable storage medium, the memory 502 may be configuredto store a software program, a computer executable program, and aprogram instruction/module (e.g., the processing module 401, obtainingmodule 402, and transmitting module 403 in the apparatus for processingdata) corresponding to the method for processing data in the embodimentof FIG. 1 in the present disclosure. The processor 501 implements themethod for processing data by executing the software program,instructions, and modules stored in the memory 502.

The memory 502 mainly includes a program storage area and a data storagearea. The program storage area may store an operating system, anapplication program required for at least one function. The data storagearea may store data or the like generated according to the use of theoptical network controller. Furthermore, the memory 502 may includehigh-speed random access memory, and may further include non-volatilememory, such as at least one disk storage device, a flash memory device,or other non-volatile solid-state storage device.

Embodiments of the present disclosure further provide a storage mediumincluding computer executable instructions that, when executed by acomputer processor, cause the computer processor to perform the methodfor processing data. The method includes: receiving and processing data;obtaining a transmission path of the data; transmitting the data to adestination output port of the data according to the transmission path;and processing the data at the destination output port.

The above description merely includes exemplary embodiments of thepresent disclosure, and is not intended to limit the protection scope ofthe present disclosure.

Those skilled in the art should appreciate that the term ‘device’ coversany suitable type of wireless user equipment, such as a mobile phone, aportable data processing device, a portable web browser or an in-vehiclemobile station.

In general, various embodiments of the present disclosure may beimplemented in hardware or dedicated circuit, software, logic, or anycombination thereof. For example, some aspects may be implemented inhardware, while other aspects may be implemented in firmware or softwarethat may be executed by a controller, microprocessor, or other computingdevice, although the present disclosure is not limited thereto.

Embodiments of the present disclosure may be implemented by a dataprocessor of a mobile device executing computer program instructions,such as in a processor entity, either by hardware, or by a combinationof software and hardware. Computer program instructions may be assemblyinstructions, instruction set architecture (ISA) instructions, machineinstructions, machine-related instructions, microcode, firmwareinstructions, status setting data, or source or target code written inany combination of one or more programming languages.

A block diagram of any logic flow in the accompanying drawings of thepresent disclosure may represent program steps, or may representinterconnected logic circuits, modules, and functions, or may representa combination of program steps with logic circuits, modules, andfunctions. A computer program may be stored in memory. The memory mayhave any type suitable for a local technical environment and may beimplemented using any suitable data storage technology, such as, but notlimited to, read only memory (ROM), random access memory (RAM), opticalmemory devices and systems (digital versatile discs (DVD) or compactdiscs (CD). The computer readable medium may include a non-transitorystorage medium. The data processor may be any type suitable for a localtechnical environment, such as, but not limited to, a general-purposecomputer, a special purpose computer, a microprocessor, a digital signalprocessor (DSP), an application specific integrated circuit (ASIC), afield-programmable gate array (FGPA), and a processor based on amulti-core processor architecture.

By way of exemplary and non-limiting examples, detailed descriptions ofexemplary embodiments of the present disclosure have been providedabove. However, in connection with the accompanying drawings and theappended claims, various modifications and adjustments to the aboveembodiments are apparent to those skilled in the art without departingfrom the protection scope of the present disclosure. Accordingly, theproper scope of the present disclosure is determined in accordance withthe appended claims.

1. A method for processing data, comprising: receiving and processingdata; obtaining a transmission path of the data; transmitting the datato a destination output port of the data according to the transmissionpath; and processing the data at the destination output port.
 2. Themethod according to claim 1, wherein receiving and processing the datacomprises: acquiring the destination output port of the data; andsorting the data according to the destination output port.
 3. The methodaccording to claim 1, wherein obtaining the transmission path of thedata comprises: determining at least one switching network node on thetransmission path of the data and a configuration parameter of each ofthe at least one switching network node according to a source input portand the destination output port of the data; and configuring each of theat least one switching network node according to the configurationparameter to generate the transmission path of the data.
 4. The methodaccording to claim 3, wherein the configuration parameter is a workingstate of each of the at least one switching network node, and theworking state includes a through transmission state and a crosstransmission state.
 5. The method according to claim 4, whereintransmitting the data to the destination output port of the dataaccording to the transmission path comprises: transmitting the data tothe destination output port of the data according to the working stateof each of the at least one switching network node on the transmissionpath.
 6. The method according to claim 1, wherein processing the data atthe destination output port comprises: processing the data at thedestination output port according to a validity indication signal of thedata.
 7. The method according to claim 6, wherein processing the data atthe destination output port according to the validity indication signalof the data comprises: receiving the data at the destination output portin response to determining that the data is valid according to thevalidity indication signal of the data.
 8. (canceled)
 9. A devicecomprising a memory, at least one processor, and a computer programstored on the memory and executable on the at least one processor,wherein the at least one processor executes the computer program toperform a method for processing data; wherein the method comprises:receiving and processing data; obtaining a transmission path of thedata; transmitting the data to a destination output port of the dataaccording to the transmission path; and processing the data at thedestination output port.
 10. A non-transitory computer readable storagemedium storing a computer program that, when executed by at least oneprocessor, causes the at least one processor to perform a method forprocessing data; wherein the method comprises: receiving and processingdata; obtaining a transmission path of the data; transmitting the datato a destination output port of the data according to the transmissionpath; and processing the data at the destination output port.
 11. Themethod according to claim 6, wherein processing the data at thedestination output port according to the validity indication signal ofthe data comprises: discarding the data at the destination output portin response to determining that the data is invalid according to thevalidity indication signal of the data.
 12. The device according toclaim 9, wherein processing the data comprises: acquiring thedestination output port of the data; and sorting the data according tothe destination output port.
 13. The device according to claim 9,wherein obtaining the transmission path of the data comprises:determining at least one switching network node on the transmission pathof the data and a configuration parameter of each of the at least oneswitching network node according to a source input port and thedestination output port of the data; and configuring each of the atleast one switching network node according to the configurationparameter to generate the transmission path of the data.
 14. The deviceaccording to claim 13, wherein the configuration parameter is a workingstate of each of the at least one switching network node, and theworking state includes a through transmission state and a crosstransmission state.
 15. The device according to claim 14, whereintransmitting the data to the destination output port of the dataaccording to the transmission path comprises: transmitting the data tothe destination output port of the data according to the working stateof each of the at least one switching network node on the transmissionpath.
 16. The device according to claim 9, wherein processing the dataat the destination output port comprises: processing the data at thedestination output port according to a validity indication signal of thedata.
 17. The non-transitory computer readable storage medium accordingto claim 10, wherein processing the data comprises: acquiring thedestination output port of the data; and sorting the data according tothe destination output port.
 18. The non-transitory computer readablestorage medium according to claim 10, wherein obtaining the transmissionpath of the data comprises: determining at least one switching networknode on the transmission path of the data and a configuration parameterof each of the at least one switching network node according to a sourceinput port and the destination output port of the data; and configuringeach of the at least one switching network node according to theconfiguration parameter to generate the transmission path of the data.19. The non-transitory computer readable storage medium according toclaim 18, wherein the configuration parameter is a working state of eachof the at least one switching network node, and the working stateincludes a through transmission state and a cross transmission state.20. The non-transitory computer readable storage medium according toclaim 19, wherein transmitting the data to the destination output portof the data according to the transmission path comprises: transmittingthe data to the destination output port of the data according to theworking state of each of the at least one switching network node on thetransmission path.
 21. The non-transitory computer readable storagemedium according to claim 10, wherein processing the data at thedestination output port comprises: processing the data at thedestination output port according to a validity indication signal of thedata.